Show the details of the fish that caused a failure
authorDaniel Sabo <DanielSabo@gmail.com>
Tue, 30 Apr 2013 02:43:41 +0000 (19:43 -0700)
committerDaniel Sabo <DanielSabo@gmail.com>
Tue, 30 Apr 2013 02:43:41 +0000 (19:43 -0700)
tests/common.inc

index 8d573fdc8c7cfe443e1bc0dcc0a2a8a3fa568722..501644abb0fa8cb8804e4e4cb551fecb6fbda92c 100644 (file)
@@ -1,4 +1,6 @@
 
+#include "babl/babl-introspect.h"
+
 #define CHECK_CONV(test_name, componenttype, src_fmt, dst_fmt, src_pix, expected_pix) \
   {       \
   const Babl *fish;       \
@@ -19,6 +21,7 @@
         {       \
           printf (" %s failed #%i[%i]  got %i expected %i\n", test_name, i, c, result[c], expected_pix[i][c]);       \
           OK = 0;          \
+          babl_introspect((Babl *)fish); \
         }       \
     }       \
   }